Writing plugins (pytest)
external plugins:setuptoolsのentry pointsを使う
Making your plugin installable by others
pytest looks up the pytest11 entrypoint to discover its plugins
code:pyproject.toml
myproject = "myproject.pluginmodule"
Make sure to include Framework :: Pytest in your list of PyPI classifiers to make it easy for users to find your plugin.